﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_Comment : System.Web.UI.Page
{
    CommentBUS comBUS = new CommentBUS();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {

        bool check = comBUS.insertComment(txtEmail.Text, txtTitle.Text, txtContent.Text);
        if (check)
        {
            lblError.Text = "Send comment successful !";
            txtContent.Text = "";
            txtEmail.Text = "";
            txtTitle.Text = "";
        }
        else
        {
            lblError.Text = "Send comment error";
        }
    }
}